package com.pliu.dao;

import com.pliu.pojo.User;

import java.util.List;

/**
 * @ClassName IUserDao
 * @Description TODO
 * @Author pliu
 * @Date 2020/6/21 23:25
 * @Version 1.0
 **/
public interface IUserDao {
    //查询所有
    public List<User> findAll() throws Exception;

    //查询单个
    public User findOne(User user) throws Exception;

    public int insert(User user) throws Exception;

    public int update(User user) throws Exception;

    public int delete(User user) throws Exception;
}
